<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@include file="/includes/header.jsp"%>
<!DOCTYPE html>

<html>
<head>
<title><fmt:message key="title.short" /></title>
<link href="http://twitter.github.com/bootstrap/assets/css/docs.css"
	rel="stylesheet">
<link href="${pageContext.request.contextPath}/css/main.css"
	rel="stylesheet">
<link
	href="http://twitter.github.com/bootstrap/assets/css/bootstrap.css"
	rel="stylesheet">
<link
	href="http://twitter.github.com/bootstrap/assets/css/bootstrap-responsive.css"
	rel="stylesheet">
</head>

<body>
	<%@include file="/includes/navbar.jsp"%>
	<div class="container">
		<div>
			<h2>${section.name}</h2>

			<c:if test="${user != null}">
				<form action="${pageContext.request.contextPath}/post.jsp"
					method="get">
					<input class="btn btn-primary" type="submit"
						value="<fmt:message key="newtopic"/>" /> <input type="hidden"
						name="sectionName" value="${section.name}" /> <input
						type="hidden" name="lang" value="${lang}" />
				</form>
			</c:if>
		</div>
		<hr />

		<c:forEach var="topic" items="${section.topics}">
			<div class="alert alert-info" style="width:85%;">
				<h3>
					<a href="topic.jsp?id=${topic.id}">${topic.title}</a>
				</h3>
				<label>modified: ${topic.modifyDate.toString().split(" ")[0]}</label>
			</div>
		</c:forEach>
	</div>

	<%@include file="/includes/footer.jsp"%>
</body>

<script src="http://twitter.github.com/bootstrap/assets/js/jquery.js"></script>
<script
	src="http://twitter.github.com/bootstrap/assets/js/bootstrap-transition.js"></script>
<script
	src="http://twitter.github.com/bootstrap/assets/js/bootstrap-alert.js"></script>
<script
	src="http://twitter.github.com/bootstrap/assets/js/bootstrap-modal.js"></script>
<script
	src="http://twitter.github.com/bootstrap/assets/js/bootstrap-dropdown.js"></script>
<script
	src="http://twitter.github.com/bootstrap/assets/js/bootstrap-scrollspy.js"></script>
<script
	src="http://twitter.github.com/bootstrap/assets/js/bootstrap-tab.js"></script>
<script
	src="http://twitter.github.com/bootstrap/assets/js/bootstrap-tooltip.js"></script>
<script
	src="http://twitter.github.com/bootstrap/assets/js/bootstrap-popover.js"></script>
<script type="text/javascript"
	src="http://jzaefferer.github.com/jquery-validation/jquery.validate.js"></script>
</html>